﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SHRIS.MIS.Entity.ScadaData
{
    [Table("tb_orderProgress")]
    public class OrderProgressEntity
    {

        /// <summary>
        /// 订单编码
        /// </summary>
        [Key]
        [Column("OrderCode")]
        public string Id { get; set; }

        /// <summary>
        /// 投产物料数量
        /// </summary>
        [Required]
        public int OnlineQuantity { get; set; }

        /// <summary>
        /// 完成数量
        /// </summary>
        [Required]
        public int FinishedQuantity { get; set; }

        /// <summary>
        /// 次品数量
        /// </summary>
        [Required]
        public int DefectQuantity { get; set; }

        /// <summary>
        /// 更新时刻
        /// </summary>
        [Required]
        public DateTimeOffset UpdateTime { get; set; }
    }
}
